﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Translator.Words
{
    public class Word
    {
        private string originalWord;
        private string translatedWord;

        protected Word()
        {
        }

        protected Word(string CeratainOriginal, string CertainTranslation)
        {
            this.SetOriginalWord(CeratainOriginal);
            this.SetTranslatedWord(CertainTranslation);
        }

        protected virtual string GetOriginalWord()
        {
            return this.originalWord;
        }

        protected virtual string GetTranslatedWord()
        {
            return this.translatedWord;
        }

        protected virtual bool SetOriginalWord(string CeratainWord)
        {
            this.originalWord = CeratainWord;
            return true;
        }

        protected virtual bool SetTranslatedWord(string CertainWord)
        {
            this.originalWord = CertainWord;
            return true;
        }

        public string Original
        {
            get
            {
                return this.GetOriginalWord();
            }
        }

        public string Translation
        {
            get
            {
                return this.GetTranslatedWord();
            }
        }
    }
}
